/*
 * @Description: Have A Nice Day!
 * @Author: Jacky
 * @Date: 2020-02-10 16:47:59
 * @LastEditors  : Jacky
 * @LastEditTime : 2020-02-12 16:51:47
 */
import React from 'react'
import styles from './index.module.css'
import {connect} from 'react-redux'
import {TOGGLE_DIALOG} from '../../store/types'
function DataSource(props) {
    let {color } = props
    let openDialog = ()=>{
        props.dispatch({
            type: TOGGLE_DIALOG
        })
    }
    return (
        <p className={styles['qs']} style={{color: color}} onClick={()=>{openDialog({title: "title", content: "content"})}}>数据来源：国家及各地卫健委每日信息发布</p>
    )
}

export default connect(null)(DataSource)
